package com.lizemin.controller;

import com.lizemin.clients.StockClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @date 2025/4/17 22:10
 * @description
 */
@Slf4j
@RestController
public class StockController implements StockClient {

    @Override
    public String deductStock(Integer productId, Integer count) {
        log.info("开始扣减库存");
        return "扣减成功";
    }

}
